package com.tudouji.project.bill.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.bill.mapper.SellitemchgrecMapper;
import com.tudouji.project.bill.domain.Sellitemchgrec;
import com.tudouji.project.bill.service.ISellitemchgrecService;

/**
 * 销售订单规格替换Service业务层处理
 * 
 * @author tudouji
 * @date 2022-07-12
 */
@Service
public class SellitemchgrecServiceImpl implements ISellitemchgrecService 
{
    @Autowired
    private SellitemchgrecMapper sellitemchgrecMapper;

    /**
     * 查询销售订单规格替换
     * 
     * @param guid 销售订单规格替换ID
     * @return 销售订单规格替换
     */
    @Override
    public Sellitemchgrec selectSellitemchgrecById(String guid)
    {
        return sellitemchgrecMapper.selectSellitemchgrecById(guid);
    }

    /**
     * 查询销售订单规格替换列表
     * 
     * @param sellitemchgrec 销售订单规格替换
     * @return 销售订单规格替换
     */
    @Override
    public List<Sellitemchgrec> selectSellitemchgrecList(Sellitemchgrec sellitemchgrec)
    {
        return sellitemchgrecMapper.selectSellitemchgrecList(sellitemchgrec);
    }

    /**
     * 新增销售订单规格替换
     * 
     * @param sellitemchgrec 销售订单规格替换
     * @return 结果
     */
    @Override
    public int insertSellitemchgrec(Sellitemchgrec sellitemchgrec)
    {
        return sellitemchgrecMapper.insertSellitemchgrec(sellitemchgrec);
    }

    /**
     * 修改销售订单规格替换
     * 
     * @param sellitemchgrec 销售订单规格替换
     * @return 结果
     */
    @Override
    public int updateSellitemchgrec(Sellitemchgrec sellitemchgrec)
    {
        return sellitemchgrecMapper.updateSellitemchgrec(sellitemchgrec);
    }

    /**
     * 批量删除销售订单规格替换
     * 
     * @param guids 需要删除的销售订单规格替换ID
     * @return 结果
     */
    @Override
    public int deleteSellitemchgrecByIds(String[] guids)
    {
        return sellitemchgrecMapper.deleteSellitemchgrecByIds(guids);
    }

    /**
     * 删除销售订单规格替换信息
     * 
     * @param guid 销售订单规格替换ID
     * @return 结果
     */
    @Override
    public int deleteSellitemchgrecById(String guid)
    {
        return sellitemchgrecMapper.deleteSellitemchgrecById(guid);
    }
}
